<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

  <head th:fragment="head(title)"> <!--title为传参-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">帖子详情</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/animate.css" th:href="@{/css/animate.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
  </head>
<body>

<!--头部导航-->
<nav th:fragment="menu(n)" class="ui secondary attached segment m-padded-tb-mini m-shadow-small animated  " >
  <div class="ui  m-container-nav">
    <div class="ui  secondary stackable menu " >
      <h2 class="ui teal header item">校园论坛论坛后台</h2>
      <a href="#" th:href="@{/admin/userAll}"class="m-item item m-mobile-hide" th:classappend="${n==1}?'active'"><i class="  icon"></i>用户管理</a>
      <a href="#" th:href="@{/admin/forums}"class="m-item item m-mobile-hide" th:classappend="${n==2}?'active'"><i class=" icon"></i>帖子管理</a>
      <a href="#"  th:href="@{/admin/tags}" class="m-item item m-mobile-hide" th:classappend="${n==3}?'active'"><i class="  icon"></i>分类管理</a>
      <a href="#"  th:href="@{/admin/notices}" class="m-item item m-mobile-hide" th:classappend="${n==4}?'active'"><i class="  icon"></i>通知管理</a>
      <a href="#"  th:href="@{/admin/link}" class="m-item item m-mobile-hide" th:classappend="${n==5}?'active'"><i class="  icon"></i>友链管理</a>
      <a href="#"  th:href="@{/admin/message}" class="m-item item m-mobile-hide" th:classappend="${n==6}?'active'"><i class="  icon"></i>留言管理</a>
      <a href="#"  th:href="@{/admin/reply}" class="m-item item m-mobile-hide" th:classappend="${n==7}?'active'"><i class="  icon"></i>回复管理</a>
      <a href="#"  th:href="@{/admin/comment}" class="m-item item m-mobile-hide" th:classappend="${n==8}?'active'"><i class="  icon"></i>评论管理</a>
      <div class="right m-item m-mobile-hide menu">
        <div class="ui dropdown  item">
          <div class="text">
<!--            src="https://unsplash.it/100/100?image=1005"-->
            <img class="ui avatar image" style="border-radius: 100%;width: 30px;height: 30px" th:src="${session.admin.getAvatar()}">
            <span th:text="${session.admin.getUsername()}" ></span>
          </div>
          <i class="dropdown icon"></i>
          <div class="menu">
            <a href="/admin/logout"  class="item">注销</a>
          </div>
        </div>
      </div>
<!--      <div class="item " >-->
<!--        <a href="#" class="ui teal mini  button m-padded-tb-small" th:href="@{/admin/forums/input}">写随笔</a>-->
<!--      </div>-->
    </div>
  </div>
  <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>


<!--导航-->




<!--底部footer-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
  <div class="ui center aligned container">
    <div class="ui inverted divided stackable grid">
      <div class="three wide centered column">
        <img src="./static/images/wechat.jpg" th:src="@{/images/weChat.jpg}" class="ui rounded image " style="width: 120px" alt="">
      </div>
      <div class="three wide column">
        <h4 class="ui inverted header m-text-thin m-text-spaced">版权归属</h4>
        <div class="ui inverted link list">
          <p class="m-text-spaced m-text-thin ">  Copyright © 2021.06 凌月星辰 </p>
          <p class="m-text-spaced m-text-thin m-opacity-mini">黔ICP备 2020076993号-1</p>

        </div>
      </div>
      <div class="three wide column">
        <h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
        <div class="ui inverted link list">
          <a href="#" class="item m-text-thin">Email：3602047188@qq.com</a>
          <a href="#" class="item m-text-thin">QQ：3602047188</a>
        </div>
      </div>
      <div class="seven wide column ">

        <h4 class="ui inverted header m-text-thin m-text-spaced ">校训</h4>
        <p class="m-text-thin m-text-spaced m-opacity-mini">
          明 &nbsp&nbsp 德 &nbsp&nbsp笃&nbsp&nbsp 学❤❤❤❤</p>
        <p class="m-text-thin m-text-spaced m-opacity-mini">
          弘 &nbsp&nbsp 毅 &nbsp&nbsp力&nbsp&nbsp 行❤❤❤❤</p>
      </div>
    </div>
    <div class="ui inverted section divider"></div>
    <p class="m-text-spaced m-text-thin m-opacity-mini">贵州省毕节市贵工程 </p>
  </div>

</footer>


<th:block th:fragment="script">
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
  <script src="../../static/lib/editormd/editormd.min.js" th:src="@{lib/editormd/editormd.min.js}"></script>
</th:block>

</body>
</html>
